package com.echat.serviceapigateway.security.model.authorization;

import lombok.Builder;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * Created by chenmohan on 2018/09/05
 *
 * @description
 */
@Data
@Table(name = "user_token_get_limit")
@Builder
public class TokenGetLimit {


    private Long id;

    /**
     * 用户id
     */
    @Id
    private Long userId;

    /**
     * 每天token请求次数上限
     */
    private Integer getTimes;

    @Column(name = "refresh_datetime")
    private LocalDateTime refreshTime;
}
